package com.baobao.dao;

import com.baobao.domain.Student;

import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;

import org.springframework.dao.DataAccessException;

/**
 * DAO to manage Student entities.
 * 
 */
public interface StudentDAO extends JpaDao<Student> {

	/**
	 * JPQL Query - findStudentByClassId
	 *
	 */
	public Set<Student> findStudentByClassId(String classId) throws DataAccessException;

	/**
	 * JPQL Query - findStudentByClassId
	 *
	 */
	public Set<Student> findStudentByClassId(String classId, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findStudentByBbIdContaining
	 *
	 */
	public Set<Student> findStudentByBbIdContaining(String bbId) throws DataAccessException;

	/**
	 * JPQL Query - findStudentByBbIdContaining
	 *
	 */
	public Set<Student> findStudentByBbIdContaining(String bbId, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findStudentByClassIdContaining
	 *
	 */
	public Set<Student> findStudentByClassIdContaining(String classId_1) throws DataAccessException;

	/**
	 * JPQL Query - findStudentByClassIdContaining
	 *
	 */
	public Set<Student> findStudentByClassIdContaining(String classId_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findStudentByName
	 *
	 */
	public Set<Student> findStudentByName(String name) throws DataAccessException;

	/**
	 * JPQL Query - findStudentByName
	 *
	 */
	public Set<Student> findStudentByName(String name, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findStudentBySex
	 *
	 */
	public Set<Student> findStudentBySex(Integer sex) throws DataAccessException;

	/**
	 * JPQL Query - findStudentBySex
	 *
	 */
	public Set<Student> findStudentBySex(Integer sex, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findStudentByPrimaryKey
	 *
	 */
	public Student findStudentByPrimaryKey(String id) throws DataAccessException;

	/**
	 * JPQL Query - findStudentByPrimaryKey
	 *
	 */
	public Student findStudentByPrimaryKey(String id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAllStudents
	 *
	 */
	public Set<Student> findAllStudents() throws DataAccessException;

	/**
	 * JPQL Query - findAllStudents
	 *
	 */
	public Set<Student> findAllStudents(int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findStudentById
	 *
	 */
	public Student findStudentById(String id_1) throws DataAccessException;

	/**
	 * JPQL Query - findStudentById
	 *
	 */
	public Student findStudentById(String id_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findStudentByIdContaining
	 *
	 */
	public Set<Student> findStudentByIdContaining(String id_2) throws DataAccessException;

	/**
	 * JPQL Query - findStudentByIdContaining
	 *
	 */
	public Set<Student> findStudentByIdContaining(String id_2, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findStudentByNameContaining
	 *
	 */
	public Set<Student> findStudentByNameContaining(String name_1) throws DataAccessException;

	/**
	 * JPQL Query - findStudentByNameContaining
	 *
	 */
	public Set<Student> findStudentByNameContaining(String name_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findStudentByBbId
	 *
	 */
	public Set<Student> findStudentByBbId(String bbId_1) throws DataAccessException;

	/**
	 * JPQL Query - findStudentByBbId
	 *
	 */
	public Set<Student> findStudentByBbId(String bbId_1, int startResult, int maxRows) throws DataAccessException;

}